using UnityEngine;

[CreateAssetMenu(fileName = "New ShieldPotion", menuName = "Inventory/BasicItem/ShieldPotion(护盾道具)")]
public class ShieldPotion : BasicItem
{
    public float shieldRestoreAmount; // 恢复的护盾值量

    public override void BasicApply(Player player)
    {
        player.stats.shield += shieldRestoreAmount; // 增加玩家的护盾值
        Debug.Log($"玩家恢复了 {shieldRestoreAmount} 点护盾值。");
    }
}